Optimal. Leaf size=164 \[ \frac{x^3 \sqrt{a^2+2 a b x+b^2 x^2} (a B e+A b e+b B d)}{3 (a+b x)}+\frac{x^2 \sqrt{a^2+2 a b x+b^2 x^2} (a A e+a B d+A b d)}{2 (a+b x)}+\frac{a A d x \sqrt{a^2+2 a b x+b^2 x^2}}{a+b x}+\frac{b B e x^4 \sqrt{a^2+2 a b x+b^2 x^2}}{4 (a+b x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0845222, antiderivative size = 164, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.065, Rules used = {770, 77} \[ \frac{x^3 \sqrt{a^2+2 a b x+b^2 x^2} (a B e+A b e+b B d)}{3 (a+b x)}+\frac{x^2 \sqrt{a^2+2 a b x+b^2 x^2} (a A e+a B d+A b d)}{2 (a+b x)}+\frac{a A d x \sqrt{a^2+2 a b x+b^2 x^2}}{a+b x}+\frac{b B e x^4 \sqrt{a^2+2 a b x+b^2 x^2}}{4 (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 770
Rule 77
Rubi steps
\begin{align*} \int (A+B x) (d+e x) \sqrt{a^2+2 a b x+b^2 x^2} \, dx &=\frac{\sqrt{a^2+2 a b x+b^2 x^2} \int \left (a b+b^2 x\right ) (A+B x) (d+e x) \, dx}{a b+b^2 x}\\ &=\frac{\sqrt{a^2+2 a b x+b^2 x^2} \int \left (a A b d+b (A b d+a B d+a A e) x+b (b B d+A b e+a B e) x^2+b^2 B e x^3\right ) \, dx}{a b+b^2 x}\\ &=\frac{a A d x \sqrt{a^2+2 a b x+b^2 x^2}}{a+b x}+\frac{(A b d+a B d+a A e) x^2 \sqrt{a^2+2 a b x+b^2 x^2}}{2 (a+b x)}+\frac{(b B d+A b e+a B e) x^3 \sqrt{a^2+2 a b x+b^2 x^2}}{3 (a+b x)}+\frac{b B e x^4 \sqrt{a^2+2 a b x+b^2 x^2}}{4 (a+b x)}\\ \end{align*}
Mathematica [A] time = 0.0371268, size = 74, normalized size = 0.45 \[ \frac{x \sqrt{(a+b x)^2} (2 a (3 A (2 d+e x)+B x (3 d+2 e x))+b x (A (6 d+4 e x)+B x (4 d+3 e x)))}{12 (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 76, normalized size = 0.5 \begin{align*}{\frac{x \left ( 3\,bBe{x}^{3}+4\,{x}^{2}Abe+4\,{x}^{2}aBe+4\,{x}^{2}Bbd+6\,xaAe+6\,xAbd+6\,xBad+12\,aAd \right ) }{12\,bx+12\,a}\sqrt{ \left ( bx+a \right ) ^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.60249, size = 126, normalized size = 0.77 \begin{align*} \frac{1}{4} \, B b e x^{4} + A a d x + \frac{1}{3} \,{\left (B b d +{\left (B a + A b\right )} e\right )} x^{3} + \frac{1}{2} \,{\left (A a e +{\left (B a + A b\right )} d\right )} x^{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.10072, size = 63, normalized size = 0.38 \begin{align*} A a d x + \frac{B b e x^{4}}{4} + x^{3} \left (\frac{A b e}{3} + \frac{B a e}{3} + \frac{B b d}{3}\right ) + x^{2} \left (\frac{A a e}{2} + \frac{A b d}{2} + \frac{B a d}{2}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13302, size = 154, normalized size = 0.94 \begin{align*} \frac{1}{4} \, B b x^{4} e \mathrm{sgn}\left (b x + a\right ) + \frac{1}{3} \, B b d x^{3} \mathrm{sgn}\left (b x + a\right ) + \frac{1}{3} \, B a x^{3} e \mathrm{sgn}\left (b x + a\right ) + \frac{1}{3} \, A b x^{3} e \mathrm{sgn}\left (b x + a\right ) + \frac{1}{2} \, B a d x^{2} \mathrm{sgn}\left (b x + a\right ) + \frac{1}{2} \, A b d x^{2} \mathrm{sgn}\left (b x + a\right ) + \frac{1}{2} \, A a x^{2} e \mathrm{sgn}\left (b x + a\right ) + A a d x \mathrm{sgn}\left (b x + a\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]